﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sea_war.GameEngine
{
    internal abstract class Ship
    {
        public int Id { get; set; }
        public int HitPoints { get; set; }
    }

    internal class Battleship : Ship
    {
        public int size { get; set; } = 4;

        public Battleship(int id) 
        {
            Id = id;

            HitPoints = size;
        }
    }

    internal class Cruiser : Ship
    {
        public int size { get; set; } = 3;
        public Cruiser(int id)
        {
            Id = id;

            HitPoints = size;
        }
    }

    internal class Destroyer : Ship
    {
        public int size { get; set; } = 2;
        public Destroyer(int id)
        {
            Id = id;

            HitPoints = size;
        }
    }

    internal class Speedboat : Ship
    {
        public int size { get; set; } = 1;
        public Speedboat(int id)
        {
            Id = id;

            HitPoints = size;
        }
    }
}
